//
//  Common.swift
//  DM_新浪微博
//
//  Created by Damon.JiAo on 16/2/26.
//  Copyright © 2016年 Demon_JiAo. All rights reserved.
//

import Foundation
import UIKit

//MARK:--微博系统申请的账号信息

let App_URL = "http://www.baidu.com"
let App_KEY = "4239295025"
let APP_SECERT = "0dfe8089c35746849bf6dd5bbd7d2478"


let WBSwitchRootVCNotification = "WBSwitchRootVCNotification"

let KUIScreenWidth = UIScreen.mainScreen().bounds.width
let KUIScreenHeight = UIScreen.mainScreen().bounds.height
let KUIScreenBounds = UIScreen.mainScreen().bounds

let randomColor = UIColor(red: CGFloat(random()%255)/255.0, green: CGFloat(random()%255)/255.0, blue: CGFloat(random()%255)/255.0, alpha: 1)

///     打印方法
func printLog<T>(message: T,
    logError: Bool = false,
    file: String = __FILE__,
    method: String = __FUNCTION__,
    line: Int = __LINE__)
{
    if logError {
        print("\((file as NSString).lastPathComponent)[\(line)], \(method): \(message)")
    } else {
        #if DEBUG
            print("\((file as NSString).lastPathComponent)[\(line)], \(method): \(message)")
        #endif
    }
}